package com.sdp.right.db.sys_flow_template_version.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdp.right.entity.SysFlowTemplate;
import com.sdp.right.entity.SysFlowTemplateVersion;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2024-07-10
 */
@DS(value="right")
public interface ISysFlowTemplateVersionService extends IService<SysFlowTemplateVersion> {

	SysFlowTemplateVersion createFlowTemplateVersion(SysFlowTemplate sysFlowTemplate);
	
	void clearHisFlowTemplateVersion(String version,String templateNo);
	
	void removeFlowTemplateVersionByTemplateNo(String templateNo);
	
	/**
	 * 根据流程模版编号和版本号查询流程信息
	 * @param templateNo
	 * @param templateVersion
	 * @return
	 */
	SysFlowTemplateVersion queryFlowTemplateVersion(String templateNo,String templateVersion);
	
	
}
